FOR REPLICATION OF ALL DATA PROCESSING, STARTING FROM THE ORIGINAL FILES (DATA DOWNLOAD REQUIRED): 

Data for 2016 and 2020 can be downloaded directly from the ANES website. 

2020 Time Series Study: https://electionstudies.org/data-center/2020-time-series-study/

2016 Time Series Study: https://electionstudies.org/data-center/2016-time-series-study/

Use the Stata do file “2020ANESCleanOriginalFile.do” to rename and standardize the 
variables in the 2020 Time Series Study dataset. After running this code, you will be 
left with a dataset containing only the variables essential for analysis. This dataset 
can be found in our files entitled “2020ANESforMerge.dta”

Use the Stata do file “2016ANESCleanOriginalFile.do” to rename and standardize the 
variables in the 2016 Time Series Study dataset. After running this code, you will be 
left with a dataset containing only the variables essential for analysis. This dataset 
can be found in our files entitled “2016ANESforMerge.dta”

FOR REPLICATION OF ANALYSIS, STARTING FROM THE CLEANED FILES (ALL DATA PROVIDED):

Use the Stata do file “MergedANESStataFile.do” to merge the “2020ANESforMerge.dta” and 
“2016ANESforMerge.dta” files together. The rest of the do file then creates the indices 
of interest, relabels variables, creates the operational ideology measure, and runs 
preliminary analysis. This do file provides the code for the creation of Table 1, Table A1, and Table A2.

Use the R script "WhiteIdentity_Figures_R.R" to create Figures 1, 2, 3, and all appendix Figures.

SPECS:

Final files were created on Mac/PC machines running Windows. 
Stata version 17 SE
R Studio: "Cherry Blossom" Release (3c53477a, 2023-03-09) for Windows
R version 4.2.2

